Integrand size = 22, antiderivative size = 393 \[ \int \frac {\sqrt {x}}{a+b \sec \left (c+d \sqrt {x}\right )} \, dx=\frac {2 x^{3/2}}{3 a}+\frac {2 i b x \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d}-\frac {2 i b x \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d}+\frac {4 b \sqrt {x} \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^2}-\frac {4 b \sqrt {x} \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^2}+\frac {4 i b \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^3}-\frac {4 i b \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^3} \]
[Out]
Time = 1.00 (sec) , antiderivative size = 393, normalized size of antiderivative = 1.00, number of steps used = 13, number of rules used = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.364, Rules used = {4289, 4276, 3402, 2296, 2221, 2611, 2320, 6724} \[ \int \frac {\sqrt {x}}{a+b \sec \left (c+d \sqrt {x}\right )} \, dx=\frac {4 i b \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {b^2-a^2}}\right )}{a d^3 \sqrt {b^2-a^2}}-\frac {4 i b \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {b^2-a^2}}\right )}{a d^3 \sqrt {b^2-a^2}}+\frac {4 b \sqrt {x} \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {b^2-a^2}}\right )}{a d^2 \sqrt {b^2-a^2}}-\frac {4 b \sqrt {x} \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {b^2-a^2}}\right )}{a d^2 \sqrt {b^2-a^2}}+\frac {2 i b x \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {b^2-a^2}}\right )}{a d \sqrt {b^2-a^2}}-\frac {2 i b x \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{\sqrt {b^2-a^2}+b}\right )}{a d \sqrt {b^2-a^2}}+\frac {2 x^{3/2}}{3 a} \]
[In]
[Out]
Rule 2221
Rule 2296
Rule 2320
Rule 2611
Rule 3402
Rule 4276
Rule 4289
Rule 6724
Rubi steps \begin{align*} \text {integral}& = 2 \text {Subst}\left (\int \frac {x^2}{a+b \sec (c+d x)} \, dx,x,\sqrt {x}\right ) \\ & = 2 \text {Subst}\left (\int \left (\frac {x^2}{a}-\frac {b x^2}{a (b+a \cos (c+d x))}\right ) \, dx,x,\sqrt {x}\right ) \\ & = \frac {2 x^{3/2}}{3 a}-\frac {(2 b) \text {Subst}\left (\int \frac {x^2}{b+a \cos (c+d x)} \, dx,x,\sqrt {x}\right )}{a} \\ & = \frac {2 x^{3/2}}{3 a}-\frac {(4 b) \text {Subst}\left (\int \frac {e^{i (c+d x)} x^2}{a+2 b e^{i (c+d x)}+a e^{2 i (c+d x)}} \, dx,x,\sqrt {x}\right )}{a} \\ & = \frac {2 x^{3/2}}{3 a}-\frac {(4 b) \text {Subst}\left (\int \frac {e^{i (c+d x)} x^2}{2 b-2 \sqrt {-a^2+b^2}+2 a e^{i (c+d x)}} \, dx,x,\sqrt {x}\right )}{\sqrt {-a^2+b^2}}+\frac {(4 b) \text {Subst}\left (\int \frac {e^{i (c+d x)} x^2}{2 b+2 \sqrt {-a^2+b^2}+2 a e^{i (c+d x)}} \, dx,x,\sqrt {x}\right )}{\sqrt {-a^2+b^2}} \\ & = \frac {2 x^{3/2}}{3 a}+\frac {2 i b x \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d}-\frac {2 i b x \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d}-\frac {(4 i b) \text {Subst}\left (\int x \log \left (1+\frac {2 a e^{i (c+d x)}}{2 b-2 \sqrt {-a^2+b^2}}\right ) \, dx,x,\sqrt {x}\right )}{a \sqrt {-a^2+b^2} d}+\frac {(4 i b) \text {Subst}\left (\int x \log \left (1+\frac {2 a e^{i (c+d x)}}{2 b+2 \sqrt {-a^2+b^2}}\right ) \, dx,x,\sqrt {x}\right )}{a \sqrt {-a^2+b^2} d} \\ & = \frac {2 x^{3/2}}{3 a}+\frac {2 i b x \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d}-\frac {2 i b x \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d}+\frac {4 b \sqrt {x} \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^2}-\frac {4 b \sqrt {x} \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^2}-\frac {(4 b) \text {Subst}\left (\int \operatorname {PolyLog}\left (2,-\frac {2 a e^{i (c+d x)}}{2 b-2 \sqrt {-a^2+b^2}}\right ) \, dx,x,\sqrt {x}\right )}{a \sqrt {-a^2+b^2} d^2}+\frac {(4 b) \text {Subst}\left (\int \operatorname {PolyLog}\left (2,-\frac {2 a e^{i (c+d x)}}{2 b+2 \sqrt {-a^2+b^2}}\right ) \, dx,x,\sqrt {x}\right )}{a \sqrt {-a^2+b^2} d^2} \\ & = \frac {2 x^{3/2}}{3 a}+\frac {2 i b x \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d}-\frac {2 i b x \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d}+\frac {4 b \sqrt {x} \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^2}-\frac {4 b \sqrt {x} \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^2}+\frac {(4 i b) \text {Subst}\left (\int \frac {\operatorname {PolyLog}\left (2,\frac {a x}{-b+\sqrt {-a^2+b^2}}\right )}{x} \, dx,x,e^{i \left (c+d \sqrt {x}\right )}\right )}{a \sqrt {-a^2+b^2} d^3}-\frac {(4 i b) \text {Subst}\left (\int \frac {\operatorname {PolyLog}\left (2,-\frac {a x}{b+\sqrt {-a^2+b^2}}\right )}{x} \, dx,x,e^{i \left (c+d \sqrt {x}\right )}\right )}{a \sqrt {-a^2+b^2} d^3} \\ & = \frac {2 x^{3/2}}{3 a}+\frac {2 i b x \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d}-\frac {2 i b x \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d}+\frac {4 b \sqrt {x} \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^2}-\frac {4 b \sqrt {x} \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^2}+\frac {4 i b \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^3}-\frac {4 i b \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^3} \\ \end{align*}
Time = 3.03 (sec) , antiderivative size = 319, normalized size of antiderivative = 0.81 \[ \int \frac {\sqrt {x}}{a+b \sec \left (c+d \sqrt {x}\right )} \, dx=\frac {2 \left (\sqrt {-a^2+b^2} d^3 x^{3/2}+3 i b d^2 x \log \left (1-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{-b+\sqrt {-a^2+b^2}}\right )-3 i b d^2 x \log \left (1+\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )+6 b d \sqrt {x} \operatorname {PolyLog}\left (2,\frac {a e^{i \left (c+d \sqrt {x}\right )}}{-b+\sqrt {-a^2+b^2}}\right )-6 b d \sqrt {x} \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )+6 i b \operatorname {PolyLog}\left (3,\frac {a e^{i \left (c+d \sqrt {x}\right )}}{-b+\sqrt {-a^2+b^2}}\right )-6 i b \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (c+d \sqrt {x}\right )}}{b+\sqrt {-a^2+b^2}}\right )\right )}{3 a \sqrt {-a^2+b^2} d^3} \]
[In]
[Out]
\[\int \frac {\sqrt {x}}{a +b \sec \left (c +d \sqrt {x}\right )}d x\]
[In]
[Out]
\[ \int \frac {\sqrt {x}}{a+b \sec \left (c+d \sqrt {x}\right )} \, dx=\int { \frac {\sqrt {x}}{b \sec \left (d \sqrt {x} + c\right ) + a} \,d x } \]
[In]
[Out]
\[ \int \frac {\sqrt {x}}{a+b \sec \left (c+d \sqrt {x}\right )} \, dx=\int \frac {\sqrt {x}}{a + b \sec {\left (c + d \sqrt {x} \right )}}\, dx \]
[In]
[Out]
Exception generated. \[ \int \frac {\sqrt {x}}{a+b \sec \left (c+d \sqrt {x}\right )} \, dx=\text {Exception raised: ValueError} \]
[In]
[Out]
\[ \int \frac {\sqrt {x}}{a+b \sec \left (c+d \sqrt {x}\right )} \, dx=\int { \frac {\sqrt {x}}{b \sec \left (d \sqrt {x} + c\right ) + a} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\sqrt {x}}{a+b \sec \left (c+d \sqrt {x}\right )} \, dx=\int \frac {\sqrt {x}}{a+\frac {b}{\cos \left (c+d\,\sqrt {x}\right )}} \,d x \]
[In]
[Out]